import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import element from 'element-plus'
import 'element-plus/theme-chalk/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

import TopBanner from '@/components/TopBanner.vue';
// import LeftMenu from '@/components/LeftMenu.vue';

const app = createApp(App);

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.use(store).use(router).use(element)

app.component('TopBanner', TopBanner);
// app.component('LeftMenu', LeftMenu);

app.mount('#app')
